package com.cn.serverline.lineicp.productionLine.param;

import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 工段添加参数
 *
 * @author Gmr
 * @since 2024/7/28
 */
@Data
public class WorkSectionAddParam {

	/**
	 * 产品型号前缀
	 */
	@ApiModelProperty(value = "产品型号前缀", required = true)
	@ChineseDescription("产品型号前缀")
	@NotBlank(message = "产品型号前缀不能为空")
	@Size(max = 300, message = "产品型号前缀长度不能超过300")
	private String productModelPrefix;

	/**
	 * 工段名称
	 */
	@ApiModelProperty(value = "工段名称", required = true)
	@ChineseDescription("工段名称")
	@NotBlank(message = "工段名称不能为空")
	@Size(max = 50, message = "工段名称长度不能超过50")
	private String workSectionName;
}
